<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改迁移作业管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-task-edit" th:object="${mappingTransTask}">
            <input name="taskId" th:field="*{taskId}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业代码：</label>
                <div class="col-sm-8">
                    <input name="taskCode" th:field="*{taskCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业名称：</label>
                <div class="col-sm-8">
                    <input name="taskName" th:field="*{taskName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">作业说明：</label>
                <div class="col-sm-8">
                    <textarea name="taskRemark" class="form-control">[[*{taskRemark}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统id：</label>
                <div class="col-sm-8">
                    <input name="sysId" th:field="*{sysId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统code：</label>
                <div class="col-sm-8">
                    <input name="sysCode" th:field="*{sysCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">系统名称：</label>
                <div class="col-sm-8">
                    <input name="sysName" th:field="*{sysName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块id：</label>
                <div class="col-sm-8">
                    <input name="moduleId" th:field="*{moduleId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块code：</label>
                <div class="col-sm-8">
                    <input name="moduleCode" th:field="*{moduleCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">模块名称：</label>
                <div class="col-sm-8">
                    <input name="moduleName" th:field="*{moduleName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">表id：</label>
                <div class="col-sm-8">
                    <input name="tableId" th:field="*{tableId}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">表code：</label>
                <div class="col-sm-8">
                    <input name="tableCode" th:field="*{tableCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">表名称：</label>
                <div class="col-sm-8">
                    <input name="tableName" th:field="*{tableName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">主sql：</label>
                <div class="col-sm-8">
                    <textarea name="taskSql" class="form-control">[[*{taskSql}]]</textarea>
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">事务提交频率：</label>
                <div class="col-sm-8">
                    <input name="transSubmitRatio" th:field="*{transSubmitRatio}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业类名：</label>
                <div class="col-sm-8">
                    <input name="taskClassName" th:field="*{taskClassName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">类包名：</label>
                <div class="col-sm-8">
                    <input name="taskLibName" th:field="*{taskLibName}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">作业拆分个数：</label>
                <div class="col-sm-8">
                    <input name="taskPartitionNum" th:field="*{taskPartitionNum}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var prefix = ctx + "mapping/task";
        $("#form-task-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-task-edit').serialize());
            }
        }
    </script>
</body>
</html>